﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SharedGenomics.Core
{
    public class TextFileReaderStreamState : ITextFileReaderState
    {
        public TextFileReaderStreamState(Stream stream)
        {
            stream.ThrowIfNull("stream");
            this.Stream = stream;
        }

        public TextReader OpenReader()
        {
            return new StreamReader(this.Stream);
        }

        private Stream Stream { get; set; }
    }
}
